<script setup name="Child" lang="ts">
import { ref } from 'vue';

const count = ref(1)
const changeCount = (num: number) => {
  count.value += num
}

defineExpose({
  count,
  changeCount
})
</script>
<template>
  <div>Child: {{ count }}</div>
</template>
